const { program } = require("commander");

/** 创建一个clone命令，该命令用一个必填参数，一个可选参数 */
program
  .command("clone <source> [destination]")
  .description("clone a repository into a newly created directory")
  .action((source, destination) => {
    console.log("得到参数", source, destination);
    // 执行 node ./command.js clone 12 得到参数 clone 12
  })
  .parse();
